<template>
  <footer class="tech-footer">
    <div class="container">
      <div class="footer-content">
        <div class="footer-section">
          <div class="footer-logo">
            <i class="fas fa-microchip"></i>
            有追求的开发者
          </div>
          <p class="footer-desc">
            专注后端与云原生技术，分享高质量的工程实践与可观测性解决方案
          </p>
          <div class="social-links">
            <a href="#" target="_blank" rel="noopener" class="social-link">
              <i class="fab fa-github"></i>
            </a>
            <a href="#" target="_blank" rel="noopener" class="social-link">
              <i class="fab fa-twitter"></i>
            </a>
            <a href="#" target="_blank" rel="noopener" class="social-link">
              <i class="fab fa-linkedin-in"></i>
            </a>
            <a href="mailto:you@example.com" class="social-link">
              <i class="fas fa-envelope"></i>
            </a>
          </div>
        </div>
        
        <div class="footer-section">
          <h4 class="footer-title">快速导航</h4>
          <ul class="footer-links">
            <li><RouterLink to="/">首页</RouterLink></li>
            <li><RouterLink to="/blog">博客</RouterLink></li>
            <li><RouterLink to="/tools">工具</RouterLink></li>
            <li><RouterLink to="/projects">项目</RouterLink></li>
            <li><RouterLink to="/about">关于</RouterLink></li>
          </ul>
        </div>
        
        <div class="footer-section">
          <h4 class="footer-title">技术栈</h4>
          <ul class="footer-links">
            <li><a href="#">Python / FastAPI</a></li>
            <li><a href="#">Vue.js / TypeScript</a></li>
            <li><a href="#">Docker / K8s</a></li>
            <li><a href="#">Prometheus / ELK</a></li>
            <li><a href="#">Redis / MySQL</a></li>
          </ul>
        </div>
        
        <div class="footer-section">
          <h4 class="footer-title">订阅更新</h4>
          <p class="subscription-text">获取最新技术文章与实战案例</p>
          <div class="subscription-form">
            <input type="email" placeholder="输入邮箱地址" class="email-input">
            <button class="subscribe-btn">
              <i class="fas fa-paper-plane"></i>
            </button>
          </div>
          <div class="rss-link">
            <a href="/rss.xml" target="_blank">
              <i class="fas fa-rss"></i>
              RSS订阅
            </a>
          </div>
        </div>
      </div>
      
      <div class="footer-bottom">
        <div class="copyright">
          <p>&copy; 2023 有追求的开发者. 保留所有权利</p>
        </div>
        <div class="footer-stats">
          <span class="stat">
            <i class="fas fa-code"></i>
            用 ❤️ 构建
          </span>
          <span class="stat">
            <i class="fab fa-vuejs"></i>
            Vue 3 + TypeScript
          </span>
        </div>
      </div>
    </div>
  </footer>
</template>

<script setup lang="ts">
// 可以添加订阅功能的逻辑
</script>

<style scoped>
.tech-footer {
  background: linear-gradient(135deg, var(--darker) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 20px;
  margin-top: 80px;
  position: relative;
}

.tech-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section {
  color: var(--light);
}

.footer-logo {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo i {
  color: var(--primary);
  font-size: 1.3rem;
}

.footer-desc {
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--light);
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.footer-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 20px;
  position: relative;
  padding-left: 15px;
}

.footer-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  position: relative;
  padding-left: 20px;
}

.footer-links a::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-links a:hover::before {
  opacity: 1;
}

.subscription-text {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.subscription-form {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.email-input {
  flex: 1;
  padding: 12px 15px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  color: var(--light);
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.email-input::placeholder {
  color: var(--gray);
}

.email-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

.subscribe-btn {
  width: 45px;
  height: 45px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subscribe-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.rss-link a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.rss-link a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--glass-border);
  flex-wrap: wrap;
  gap: 20px;
}

.copyright p {
  color: var(--gray);
  font-size: 0.9rem;
  margin: 0;
}

.footer-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stat {
  color: var(--gray);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .footer-stats {
    justify-content: center;
  }
  
  .subscription-form {
    flex-direction: column;
  }
  
  .subscribe-btn {
    align-self: center;
  }
}

@media (max-width: 576px) {
  .tech-footer {
    padding: 40px 0 20px;
    margin-top: 60px;
  }
  
  .social-links {
    justify-content: center;
  }
}
</style>